import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api_dms/order/'
  
// 确认收货
export const orderConfirmReceipt: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}receipt`, { data })

// 客户订单匹配折扣
export const orderDiscountMatch: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}discount/match`, { data })